home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / init.d / policykit < prev    next >
Text File  |  2008-10-08  |  687b  |  30 lines

  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:          policykit
  4. # Required-Start:    $local_fs
  5. # Required-Stop:     $local_fs
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:
  8. # Short-Description: Create PolicyKit runtime directories
  9. # Description:       Create directories which PolicyKit needs at runtime,
  10. #                    such as /var/run/PolicyKit
  11. ### END INIT INFO
  12.  
  13. # Author: Martin Pitt <martin.pitt@ubuntu.com>
  14.  
  15. case "$1" in
  16.   start)
  17.         mkdir -p /var/run/PolicyKit
  18.         chown root:polkituser /var/run/PolicyKit
  19.         chmod 770 /var/run/PolicyKit
  20.     ;;
  21.   stop|restart|force-reload)
  22.     ;;
  23.   *)
  24.     echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
  25.     exit 3
  26.     ;;
  27. esac
  28.  
  29. :
  30.